package cn.xmo.domain.cargo;

import cn.xmo.domain.BaseEntity;

import java.io.Serializable;
import java.util.List;

public class ContractProduct extends BaseEntity implements Serializable {

    private List<ExtCproduct> extCproducts ;

    public List<ExtCproduct> getExtCproducts() {
        return extCproducts;
    }

    public void setExtCproducts(List<ExtCproduct> extCproducts) {
        this.extCproducts = extCproducts;
    }

    public ContractProduct(){}

    public ContractProduct(Object []objs, String companyId, String companyName) {
        this.factoryName = objs[1].toString();
        this.productNo = objs[2].toString();
        this.cnumber = ((Long) objs[3]);
        this.packingUnit = objs[4].toString();
        this.loadingRate = objs[5].toString();
        this.boxNum = ((Double) objs[6]);
        this.price = (Double) objs[7];
        this.productRequest=objs[8].toString();
        this.productDesc=objs[9].toString();
        this.companyId = companyId;
        this.companyName = companyName;
    }
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.id
     *
     * @mbg.generated
     */
    private String id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.contract_id
     *
     * @mbg.generated
     */
    private String contractId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.factory_id
     *
     * @mbg.generated
     */
    private String factoryId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.factory_name
     *
     * @mbg.generated
     */
    private String factoryName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.product_no
     *
     * @mbg.generated
     */
    private String productNo;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.product_image
     *
     * @mbg.generated
     */
    private String productImage;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.product_desc
     *
     * @mbg.generated
     */
    private String productDesc;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.loading_rate
     *
     * @mbg.generated
     */
    private String loadingRate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.box_num
     *
     * @mbg.generated
     */
    private Double boxNum;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.packing_unit
     *
     * @mbg.generated
     */
    private String packingUnit;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.cnumber
     *
     * @mbg.generated
     */
    private Long cnumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.out_number
     *
     * @mbg.generated
     */
    private Long outNumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.finished
     *
     * @mbg.generated
     */
    private Double finished;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.product_request
     *
     * @mbg.generated
     */
    private String productRequest;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.price
     *
     * @mbg.generated
     */
    private Double price;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.amount
     *
     * @mbg.generated
     */
    private Double amount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.order_no
     *
     * @mbg.generated
     */
    private Double orderNo;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.company_id
     *
     * @mbg.generated
     */
    private String companyId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column co_contract_product.company_name
     *
     * @mbg.generated
     */
    private String companyName;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.id
     *
     * @return the value of co_contract_product.id
     *
     * @mbg.generated
     */
    public String getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.id
     *
     * @param id the value for co_contract_product.id
     *
     * @mbg.generated
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.contract_id
     *
     * @return the value of co_contract_product.contract_id
     *
     * @mbg.generated
     */
    public String getContractId() {
        return contractId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.contract_id
     *
     * @param contractId the value for co_contract_product.contract_id
     *
     * @mbg.generated
     */
    public void setContractId(String contractId) {
        this.contractId = contractId == null ? null : contractId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.factory_id
     *
     * @return the value of co_contract_product.factory_id
     *
     * @mbg.generated
     */
    public String getFactoryId() {
        return factoryId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.factory_id
     *
     * @param factoryId the value for co_contract_product.factory_id
     *
     * @mbg.generated
     */
    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId == null ? null : factoryId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.factory_name
     *
     * @return the value of co_contract_product.factory_name
     *
     * @mbg.generated
     */
    public String getFactoryName() {
        return factoryName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.factory_name
     *
     * @param factoryName the value for co_contract_product.factory_name
     *
     * @mbg.generated
     */
    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.product_no
     *
     * @return the value of co_contract_product.product_no
     *
     * @mbg.generated
     */
    public String getProductNo() {
        return productNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.product_no
     *
     * @param productNo the value for co_contract_product.product_no
     *
     * @mbg.generated
     */
    public void setProductNo(String productNo) {
        this.productNo = productNo == null ? null : productNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.product_image
     *
     * @return the value of co_contract_product.product_image
     *
     * @mbg.generated
     */
    public String getProductImage() {
        return productImage;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.product_image
     *
     * @param productImage the value for co_contract_product.product_image
     *
     * @mbg.generated
     */
    public void setProductImage(String productImage) {
        this.productImage = productImage == null ? null : productImage.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.product_desc
     *
     * @return the value of co_contract_product.product_desc
     *
     * @mbg.generated
     */
    public String getProductDesc() {
        return productDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.product_desc
     *
     * @param productDesc the value for co_contract_product.product_desc
     *
     * @mbg.generated
     */
    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc == null ? null : productDesc.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.loading_rate
     *
     * @return the value of co_contract_product.loading_rate
     *
     * @mbg.generated
     */
    public String getLoadingRate() {
        return loadingRate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.loading_rate
     *
     * @param loadingRate the value for co_contract_product.loading_rate
     *
     * @mbg.generated
     */
    public void setLoadingRate(String loadingRate) {
        this.loadingRate = loadingRate == null ? null : loadingRate.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.box_num
     *
     * @return the value of co_contract_product.box_num
     *
     * @mbg.generated
     */
    public Double getBoxNum() {
        return boxNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.box_num
     *
     * @param boxNum the value for co_contract_product.box_num
     *
     * @mbg.generated
     */
    public void setBoxNum(Double boxNum) {
        this.boxNum = boxNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.packing_unit
     *
     * @return the value of co_contract_product.packing_unit
     *
     * @mbg.generated
     */
    public String getPackingUnit() {
        return packingUnit;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.packing_unit
     *
     * @param packingUnit the value for co_contract_product.packing_unit
     *
     * @mbg.generated
     */
    public void setPackingUnit(String packingUnit) {
        this.packingUnit = packingUnit == null ? null : packingUnit.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.cnumber
     *
     * @return the value of co_contract_product.cnumber
     *
     * @mbg.generated
     */
    public Long getCnumber() {
        return cnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.cnumber
     *
     * @param cnumber the value for co_contract_product.cnumber
     *
     * @mbg.generated
     */
    public void setCnumber(Long cnumber) {
        this.cnumber = cnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.out_number
     *
     * @return the value of co_contract_product.out_number
     *
     * @mbg.generated
     */
    public Long getOutNumber() {
        return outNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.out_number
     *
     * @param outNumber the value for co_contract_product.out_number
     *
     * @mbg.generated
     */
    public void setOutNumber(Long outNumber) {
        this.outNumber = outNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.finished
     *
     * @return the value of co_contract_product.finished
     *
     * @mbg.generated
     */
    public Double getFinished() {
        return finished;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.finished
     *
     * @param finished the value for co_contract_product.finished
     *
     * @mbg.generated
     */
    public void setFinished(Double finished) {
        this.finished = finished;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.product_request
     *
     * @return the value of co_contract_product.product_request
     *
     * @mbg.generated
     */
    public String getProductRequest() {
        return productRequest;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.product_request
     *
     * @param productRequest the value for co_contract_product.product_request
     *
     * @mbg.generated
     */
    public void setProductRequest(String productRequest) {
        this.productRequest = productRequest == null ? null : productRequest.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.price
     *
     * @return the value of co_contract_product.price
     *
     * @mbg.generated
     */
    public Double getPrice() {
        return price;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.price
     *
     * @param price the value for co_contract_product.price
     *
     * @mbg.generated
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.amount
     *
     * @return the value of co_contract_product.amount
     *
     * @mbg.generated
     */
    public Double getAmount() {
        return amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.amount
     *
     * @param amount the value for co_contract_product.amount
     *
     * @mbg.generated
     */
    public void setAmount(Double amount) {
        this.amount = amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.order_no
     *
     * @return the value of co_contract_product.order_no
     *
     * @mbg.generated
     */
    public Double getOrderNo() {
        return orderNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.order_no
     *
     * @param orderNo the value for co_contract_product.order_no
     *
     * @mbg.generated
     */
    public void setOrderNo(Double orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.company_id
     *
     * @return the value of co_contract_product.company_id
     *
     * @mbg.generated
     */
    public String getCompanyId() {
        return companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.company_id
     *
     * @param companyId the value for co_contract_product.company_id
     *
     * @mbg.generated
     */
    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_contract_product.company_name
     *
     * @return the value of co_contract_product.company_name
     *
     * @mbg.generated
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_contract_product.company_name
     *
     * @param companyName the value for co_contract_product.company_name
     *
     * @mbg.generated
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }
}